@extends('manager._layouts.default')

@section('main')

<h2>
	Videos <a href="{{ URL::route('manager.videos.create') }}" class="btn btn-primary btn-xxs" data-toggle="tooltip" title="Add new videos"><i class="fa fa-fw fa-plus"></i></a>
</h2>

{{ Notification::showAll() }}

<div class="row">
	<div class="col-lg-12" id="blocklist-container">
		<ul class='blocklist full' id=''>
			@foreach($videos as $video)
			<li data-videoid='{{$video->id}}'>
				<div class='blocklistitem'>
					{{ $video->title }}


					<?=\Form::open(array(
						"route" => array("manager.videos.destroy", $video->id),
						"method" => "delete",
						"class" => "pull-right delete-video"
					));?>
					<button class='btn btn-danger btn-xxs' type='submit' data-toggle='tooltip' title='Delete'><i class='fa fa-fw fa-trash-o'></i></button>

					<?=\Form::close();?>

					<a href="<?=\URL::route("manager.videos.edit", $video->id)?>" class='btn btn-xxs btn-warning pull-right' data-toggle='tooltip' title='Edit'><i class='fa fa-fw fa-edit'></i></a>

				</div>
			</li>
			@endforeach
		</ul>
	</div>
</div>
@stop